package com.example.lsnetchatplugin

import org.json.JSONObject

class JsonMessage (var inputJsonMessage: String) : CustomAttachment(100) {

    var data:String = ""


    override fun parseData(data: JSONObject?) {
        this.data = data!!.toString();
    }

    override fun packData(): JSONObject? {
        val data = JSONObject()
        data.put("data",inputJsonMessage)
        return data
    }
}